.aibox{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background-color: #F5F6F7;
   
}
.top{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
}
main{
    flex: 1;
    overflow-y: scroll;
}
footer{
    height: 90px;
}
.imgbox{
    margin-top: 60px;
    margin-left: 150px;
.img{
    width: 80px;
    height: 80px;
}
}
.cardbox{
    margin: 15px 15px;
    font-size: 17px;
    .carditem{
       line-height:25px;
    }
}
.editPill{
    margin-top: -10px;
    margin-left: 10px;
    border: none;
    outline: none;
    background: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}
.inbtnbox{
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    margin: 10px 15px;
    box-shadow:0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05) ;
    .input{
        margin-left: 10px;
    }

    .btn{
         border:none;
       img{
         width: 25px;
        height: 25px;
        margin-top: 8px;
       
       }
    }
}


/* ===== 新版基于 msgitem 的左右布局，不改动 TSX ===== */
.msgList{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 12px;
}
.msgitem{
    display: flex;
    align-items: flex-end;
    gap: 8px;
}
.msgiten_ai{ /* 左侧：AI/人工回复（白底） */
    max-width: 78%;
    padding: 10px 12px;
    background: #ffffff;
    color: #333;
    border-radius: 12px 12px 12px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    word-break: break-word;
    line-height: 1.5;
}
.msgitem_user{ /* 右侧：我发送（绿色） */
    max-width: 78%;
    padding: 10px 12px;
    background: #1BBA93;
    color: #fff;
    border-radius: 12px 12px 4px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    word-break: break-word;
    line-height: 1.5;
}

/* 右侧（我发送） */
.chat-item-r{
    justify-content: flex-end;
}
.chat-item-r > div{
    max-width: 78%;
    padding: 10px 12px;
    background: #3fc125;
    color: #fff;
    border-radius: 12px 12px 4px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    word-break: break-word;
    line-height: 1.5;
}